package com.vitas.coin.resp

import com.vitas.coin.data.bean.ChildrenVoiceBean
import com.vitas.coin.data.room.AppDatabase

object CollectDaoResp {

    private val collectDao by lazy { AppDatabase.getInstance().collectDao() }

    fun upsert(mChildrenVoiceBean: ChildrenVoiceBean) {
        collectDao.upsert(mChildrenVoiceBean)
    }

    fun queryAll(): List<ChildrenVoiceBean> {
        return collectDao.queryAll()
    }


    fun delete(ChildrenVoiceBean: ChildrenVoiceBean) {
        collectDao.delete(ChildrenVoiceBean)
    }
}